<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>ms-include</title>
    <script src="../../avalon1.5/avalon.js"></script>
    <script>
        var model = avalon.define({
            $id: "test",
            url: "Template1",
            name: "ddddddd",
            password: '12345678',
            array: [1, 2, 3, 4, 5, 6, 7],
            add: function (e) {
                if (this.value && e.which == 13) {//this为input元素
                    var a = this.value
                    model.array.push(a)
                    this.value = "";
                }
            }
        })
    </script>
</head>
<body>
<h3 style='text-align: center'>ms-include</h3>
<div ms-controller="test">
    <select ms-duplex="url">
        <option>Template2</option>
        <option>Template3</option>
    </select>
    <div ms-include-src="include{{url}}.html"></div>
</div>
</body>
</html>